<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Untitled Document</title>
    </head>

    <body>
        <%--
            Document   : displayQuestion
            Created on : Oct 28, 2009, 4:32:52 PM
            Author     : Administrator
        --%>

        <%@page contentType="text/html" pageEncoding="UTF-8"%>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
        <%@page import="java.sql.*" %>
        <%@taglib prefix="ajax" uri="http://ajaxtags.org/tags/ajax" %>
        <html>
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                   
                   
                    <title>Themes</title>
            </head>


            <body bgcolor="#154978">

                <table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
                    <!--DWLayoutTable-->
                    <tr>
                        <td width="1024" height="157" valign="top" background="../images/Banner.jpg">

                        </td>
                    </tr>
                    <tr>
                        <td height="463" valign="top">
                            <table width="100%" border="0" cellpadding="2" cellspacing="2" style="border:solid 1px; border-collapse:collapse">
                                <!--DWLayoutTable-->
                                <tr>
                                    <td height="28" colspan="2" valign="top" background="../images/top_button.gif">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="150" height="537" valign="top">

                                        <!-- MENU -->
                                        <%//@include file="menu.jsp" %>
                                        <!--END MENU-->	</td>
                                    <td width="858" align="center" valign="middle" bgcolor="#CCCCCC">
                                        <jsp:useBean id="ObjTest" class="DAO.Result" scope="request" />
                                       
                                        <ajax:htmlContent source="button" target="displayQuestion" baseUrl="include/display.jsp" parameters="id={subID},sec={Random}" />
                                        <ajax:htmlContent source="buttonAdd" target="displayQuestion" baseUrl="addQuestions.jsp" parameters="id={subID}" />
                                        <div id="displayQuestion" >
                                            <table border="1" style="border:solid 1px; border-collapse:collapse">
                                                <thead>
                                                    <tr>
                                                        <th>ID</th>
                                                        <th>User Name</th>
                                                        <th>Start Time</th>
                                                        <th>End Time</th>
                                                        <th>Answer True</th>
                                                        <th>Mark</th>
                                                    </tr>
                                                </thead>
                                                <%
                                               ResultSet  rsu = ObjTest.selectResultUser("phongtn");
                                      while (rsu.next()) {
                                                %>
                                                <tbody>
                                                    <tr>
                                                        <td><%=rsu.getInt("ResultID")%></td>
                                                        <td><%=rsu.getString("UserName")%></td>

                                                        <td><%=rsu.getString("StartTime")%></td>
                                                        <td>
                                                            <%=rsu.getString("EndTime")%>
                                                        </td>
                                                        <td>
                                                            <%=rsu.getInt("AnswerTrue")%>
                                                        </td>
                                                        <td>
                                                            <%=rsu.getFloat("Mark")%>
                                                        </td>

                                                    </tr>
                                                </tbody>
                                                <% }%>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </body>
        </html>

    </body>
</html>
